.class public abstract Lcom/instagram/android/d/e/s;
.super Lcom/instagram/android/d/j/g;
.source "MediaFeedRequest.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/instagram/android/d/j/g",
        "<",
        "Lcom/instagram/android/model/k;",
        ">;"
    }
.end annotation


# instance fields
.field private a:Z

.field private e:Lcom/instagram/android/fragment/d;


# direct methods
.method public constructor <init>(Landroid/support/v4/app/Fragment;ILcom/instagram/android/d/j/f;)V
    .locals 2
    .parameter
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/support/v4/app/Fragment;",
            "I",
            "Lcom/instagram/android/d/j/f",
            "<",
            "Lcom/instagram/android/model/k;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 52
    invoke-virtual {p1}, Landroid/support/v4/app/Fragment;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {p1}, Landroid/support/v4/app/Fragment;->u()Landroid/support/v4/app/aj;

    move-result-object v1

    invoke-direct {p0, v0, v1, p2, p3}, Lcom/instagram/android/d/j/g;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/a;)V

    .line 40
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/d/e/s;->a:Z

    .line 53
    return-void
.end method

.method public constructor <init>(Lcom/instagram/android/fragment/d;ILcom/instagram/android/d/j/f;)V
    .locals 2
    .parameter
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/fragment/d;",
            "I",
            "Lcom/instagram/android/d/j/f",
            "<",
            "Lcom/instagram/android/model/k;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 45
    invoke-virtual {p1}, Lcom/instagram/android/fragment/d;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {p1}, Lcom/instagram/android/fragment/d;->u()Landroid/support/v4/app/aj;

    move-result-object v1

    invoke-direct {p0, v0, v1, p2, p3}, Lcom/instagram/android/d/j/g;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/a;)V

    .line 40
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/d/e/s;->a:Z

    .line 46
    iput-object p1, p0, Lcom/instagram/android/d/e/s;->e:Lcom/instagram/android/fragment/d;

    .line 48
    return-void
.end method

.method private a(Lcom/fasterxml/jackson/a/l;Lcom/instagram/android/model/k;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 213
    :cond_0
    :goto_0
    invoke-virtual {p1}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    move-result-object v0

    sget-object v1, Lcom/fasterxml/jackson/a/r;->c:Lcom/fasterxml/jackson/a/r;

    if-eq v0, v1, :cond_2

    .line 214
    invoke-virtual {p1}, Lcom/fasterxml/jackson/a/l;->getCurrentName()Ljava/lang/String;

    move-result-object v0

    .line 216
    const-string v1, "messages"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 218
    invoke-virtual {p1}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 220
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 221
    :goto_1
    invoke-virtual {p1}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    move-result-object v1

    sget-object v2, Lcom/fasterxml/jackson/a/r;->e:Lcom/fasterxml/jackson/a/r;

    if-eq v1, v2, :cond_1

    .line 223
    invoke-static {p1}, Lcom/instagram/android/model/f;->a(Lcom/fasterxml/jackson/a/l;)Lcom/instagram/android/model/f;

    move-result-object v1

    .line 224
    if-eqz v1, :cond_1

    .line 225
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 231
    :cond_1
    invoke-virtual {p2, v0}, Lcom/instagram/android/model/k;->b(Ljava/util/ArrayList;)V

    goto :goto_0

    .line 235
    :cond_2
    return-void
.end method

.method private a(Lcom/instagram/j/l;)Z
    .locals 1
    .parameter

    .prologue
    .line 249
    invoke-virtual {p1}, Lcom/instagram/j/l;->Y()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/d/e/s;->e:Lcom/instagram/android/fragment/d;

    instance-of v0, v0, Lcom/instagram/android/fragment/dw;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/d/e/s;->e:Lcom/instagram/android/fragment/d;

    invoke-virtual {v0}, Lcom/instagram/android/fragment/d;->c_()Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private c(Lcom/instagram/android/d/j/r;)Lcom/instagram/android/model/k;
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/r",
            "<",
            "Lcom/instagram/android/model/k;",
            ">;)",
            "Lcom/instagram/android/model/k;"
        }
    .end annotation

    .prologue
    .line 262
    invoke-virtual {p1}, Lcom/instagram/android/d/j/r;->h()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/k;

    .line 263
    if-nez v0, :cond_0

    .line 264
    new-instance v0, Lcom/instagram/android/model/k;

    invoke-direct {v0}, Lcom/instagram/android/model/k;-><init>()V

    .line 265
    invoke-virtual {p1, v0}, Lcom/instagram/android/d/j/r;->a(Ljava/lang/Object;)V

    .line 268
    :cond_0
    return-object v0
.end method


# virtual methods
.method public a()Lcom/instagram/android/d/b/a;
    .locals 1

    .prologue
    .line 84
    sget-object v0, Lcom/instagram/android/d/b/a;->b:Lcom/instagram/android/d/b/a;

    return-object v0
.end method

.method protected a(Lcom/instagram/android/d/b/c;)V
    .locals 3
    .parameter

    .prologue
    .line 61
    iget-boolean v0, p0, Lcom/instagram/android/d/e/s;->a:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/d/e/s;->e:Lcom/instagram/android/fragment/d;

    if-eqz v0, :cond_0

    .line 62
    iget-object v0, p0, Lcom/instagram/android/d/e/s;->e:Lcom/instagram/android/fragment/d;

    invoke-virtual {v0}, Lcom/instagram/android/fragment/d;->ae()Lcom/instagram/android/model/d;

    move-result-object v0

    .line 63
    invoke-virtual {v0}, Lcom/instagram/android/model/d;->b()Lcom/instagram/android/model/e;

    move-result-object v1

    .line 64
    iget-object v2, v1, Lcom/instagram/android/model/e;->d:Ljava/lang/String;

    if-eqz v2, :cond_0

    .line 65
    iget-object v1, v1, Lcom/instagram/android/model/e;->d:Ljava/lang/String;

    invoke-virtual {v0}, Lcom/instagram/android/model/d;->c()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v1, v0}, Lcom/instagram/android/d/b/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 68
    :cond_0
    return-void
.end method

.method public a(Lcom/instagram/android/d/j/r;)V
    .locals 5
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/r",
            "<",
            "Lcom/instagram/android/model/k;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 90
    invoke-virtual {p1}, Lcom/instagram/android/d/j/r;->h()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/k;

    .line 92
    if-eqz v0, :cond_4

    .line 95
    invoke-virtual {v0}, Lcom/instagram/android/model/k;->a()Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/instagram/j/l;

    .line 96
    invoke-virtual {v1}, Lcom/instagram/j/l;->Y()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 97
    const-string v3, "delivery"

    iget-object v4, p0, Lcom/instagram/android/d/e/s;->e:Lcom/instagram/android/fragment/d;

    invoke-static {v3, v1, v4}, Lcom/instagram/h/a/c;->a(Ljava/lang/String;Lcom/instagram/j/l;Lcom/instagram/b/d;)V

    goto :goto_0

    .line 104
    :cond_1
    iget-boolean v1, p0, Lcom/instagram/android/d/e/s;->a:Z

    if-nez v1, :cond_3

    iget-object v1, p0, Lcom/instagram/android/d/e/s;->c:Landroid/content/Context;

    invoke-static {v1}, Lcom/instagram/creation/video/c/b;->a(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 105
    invoke-virtual {v0}, Lcom/instagram/android/model/k;->a()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_2
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/j/l;

    .line 106
    invoke-virtual {v0}, Lcom/instagram/j/l;->h()Lcom/instagram/model/a/a;

    move-result-object v2

    sget-object v3, Lcom/instagram/model/a/a;->b:Lcom/instagram/model/a/a;

    if-ne v2, v3, :cond_2

    .line 107
    invoke-static {}, Lcom/instagram/android/mediacache/n;->a()Lcom/instagram/android/mediacache/n;

    move-result-object v1

    invoke-virtual {v0}, Lcom/instagram/j/l;->s()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/instagram/android/mediacache/n;->a(Landroid/net/Uri;)V

    .line 112
    :cond_3
    invoke-static {p1}, Lcom/instagram/android/h/d;->a(Lcom/instagram/android/d/j/j;)V

    .line 114
    :cond_4
    return-void
.end method

.method public a(Ljava/lang/String;Lcom/fasterxml/jackson/a/l;Lcom/instagram/android/d/j/r;)Z
    .locals 7
    .parameter
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Lcom/fasterxml/jackson/a/l;",
            "Lcom/instagram/android/d/j/r",
            "<",
            "Lcom/instagram/android/model/k;",
            ">;)Z"
        }
    .end annotation

    .prologue
    const/4 v2, 0x0

    .line 122
    const-string v0, "items"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_7

    .line 123
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 124
    invoke-direct {p0, p3}, Lcom/instagram/android/d/e/s;->c(Lcom/instagram/android/d/j/r;)Lcom/instagram/android/model/k;

    move-result-object v3

    .line 126
    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    .line 127
    const/4 v0, 0x0

    .line 128
    :cond_0
    :goto_0
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    move-result-object v1

    sget-object v5, Lcom/fasterxml/jackson/a/r;->e:Lcom/fasterxml/jackson/a/r;

    if-eq v1, v5, :cond_3

    .line 130
    invoke-static {p2}, Lcom/instagram/j/l;->a(Lcom/fasterxml/jackson/a/l;)Lcom/instagram/j/l;

    move-result-object v1

    .line 132
    if-eqz v1, :cond_3

    .line 134
    iget-object v5, p0, Lcom/instagram/android/d/e/s;->e:Lcom/instagram/android/fragment/d;

    if-eqz v5, :cond_2

    iget-object v5, p0, Lcom/instagram/android/d/e/s;->e:Lcom/instagram/android/fragment/d;

    invoke-virtual {v5}, Lcom/instagram/android/fragment/d;->c_()Z

    move-result v5

    if-eqz v5, :cond_2

    invoke-virtual {v1}, Lcom/instagram/j/l;->Y()Z

    move-result v5

    if-eqz v5, :cond_2

    .line 135
    invoke-static {}, Lcom/instagram/android/feed/d/j;->a()Lcom/instagram/android/feed/d/j;

    move-result-object v5

    invoke-virtual {v5, v1}, Lcom/instagram/android/feed/d/j;->a(Lcom/instagram/j/l;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 136
    invoke-static {v1}, Lcom/instagram/h/a/e;->a(Lcom/instagram/j/l;)V

    .line 140
    :cond_1
    if-nez v0, :cond_2

    iget-boolean v5, p0, Lcom/instagram/android/d/e/s;->a:Z

    if-nez v5, :cond_2

    move-object v0, v1

    .line 145
    :cond_2
    invoke-direct {p0, v1}, Lcom/instagram/android/d/e/s;->a(Lcom/instagram/j/l;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 146
    invoke-virtual {v4, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 155
    :cond_3
    if-eqz v0, :cond_4

    .line 156
    invoke-static {}, Lcom/instagram/m/b/a;->a()Lcom/instagram/m/b/a;

    move-result-object v1

    .line 157
    invoke-virtual {v0}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1}, Lcom/instagram/m/b/a;->w()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v0, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_6

    move v0, v2

    :goto_1
    invoke-virtual {v1, v5, v0}, Lcom/instagram/m/b/a;->b(Ljava/lang/String;Z)V

    .line 163
    :cond_4
    invoke-virtual {v3, v4}, Lcom/instagram/android/model/k;->a(Ljava/util/ArrayList;)V

    .line 206
    :goto_2
    const/4 v2, 0x1

    :cond_5
    return v2

    .line 157
    :cond_6
    invoke-virtual {v1}, Lcom/instagram/m/b/a;->x()Z

    move-result v0

    goto :goto_1

    .line 165
    :cond_7
    const-string v0, "more_available"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_8

    .line 166
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 167
    invoke-direct {p0, p3}, Lcom/instagram/android/d/e/s;->c(Lcom/instagram/android/d/j/r;)Lcom/instagram/android/model/k;

    move-result-object v0

    .line 169
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->getBooleanValue()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/model/k;->a(Z)V

    goto :goto_2

    .line 171
    :cond_8
    const-string v0, "next_max_id"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_9

    .line 172
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 173
    invoke-direct {p0, p3}, Lcom/instagram/android/d/e/s;->c(Lcom/instagram/android/d/j/r;)Lcom/instagram/android/model/k;

    move-result-object v0

    .line 175
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->getText()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/model/k;->a(Ljava/lang/String;)V

    goto :goto_2

    .line 177
    :cond_9
    const-string v0, "meta"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_a

    .line 178
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 179
    invoke-direct {p0, p3}, Lcom/instagram/android/d/e/s;->c(Lcom/instagram/android/d/j/r;)Lcom/instagram/android/model/k;

    move-result-object v0

    .line 181
    invoke-direct {p0, p2, v0}, Lcom/instagram/android/d/e/s;->a(Lcom/fasterxml/jackson/a/l;Lcom/instagram/android/model/k;)V

    goto :goto_2

    .line 183
    :cond_a
    const-string v0, "auto_load_more_enabled"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_b

    .line 184
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 185
    invoke-direct {p0, p3}, Lcom/instagram/android/d/e/s;->c(Lcom/instagram/android/d/j/r;)Lcom/instagram/android/model/k;

    move-result-object v0

    .line 187
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->getBooleanValue()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/model/k;->b(Z)V

    goto :goto_2

    .line 189
    :cond_b
    const-string v0, "live_timestamp"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_c

    .line 190
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 191
    invoke-direct {p0, p3}, Lcom/instagram/android/d/e/s;->c(Lcom/instagram/android/d/j/r;)Lcom/instagram/android/model/k;

    move-result-object v0

    .line 193
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->getIntValue()I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/model/k;->a(Ljava/lang/Integer;)V

    goto :goto_2

    .line 195
    :cond_c
    const-string v0, "recommendations"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 196
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 197
    invoke-direct {p0, p3}, Lcom/instagram/android/d/e/s;->c(Lcom/instagram/android/d/j/r;)Lcom/instagram/android/model/k;

    move-result-object v0

    .line 199
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/l;->getBooleanValue()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/model/k;->c(Z)V

    goto/16 :goto_2
.end method

.method protected a_()Z
    .locals 1

    .prologue
    .line 72
    const/4 v0, 0x1

    return v0
.end method

.method public a_(Lcom/instagram/android/d/j/j;)Z
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/j",
            "<",
            "Lcom/instagram/android/model/k;",
            ">;)Z"
        }
    .end annotation

    .prologue
    .line 240
    const/4 v0, 0x0

    return v0
.end method

.method protected final f()Ljava/lang/String;
    .locals 1

    .prologue
    .line 57
    invoke-virtual {p0}, Lcom/instagram/android/d/e/s;->j()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public i()V
    .locals 1

    .prologue
    .line 76
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/android/d/e/s;->a:Z

    .line 77
    invoke-virtual {p0}, Lcom/instagram/android/d/e/s;->g()V

    .line 78
    return-void
.end method

.method protected abstract j()Ljava/lang/String;
.end method
